Codiusd requires CODIUS_PUBLIC_URI to be set #115
Comments
Try enclosing your environment variables in quotes, like this: |
That's how it originally was... I changed it to match my other working host. I did My host seems to be running thought... I have no idea what's wrong. |
Interesting, thanks for the update! Seems this issue is resolved for now so I'm closing it if it occurs again please reopen the issue. |
I'm getting this issue again, I did a complete re-install following the Medium guide by @justmoon and I'm back to zero... I cannot re-open this issue as I didn't close it before... |
@GaetanoH reopened, is it the same exact error? |
Yes, still the same. My host seems to be running but I haven't received any XRP or contracts in that time... When debugging the same error message from above pops up again. All the other instances seems to be running perfect. |
Oh its the same error, very odd, I tried a contract at https://zodius.gaetanoherman.be but get a 502 error which indicates its something with that public uri not being set correctly. |
I've checked that file 20+ times, and copied the file from the tutorial and everything seems the same except the domain itself, which is normal... |
Can you post your current codius.service file? |
I now get this: Unit codius.service could not be found. This is the current file:
|
Are you running the command |
Yes, now I did, it executes but I still get the |
Can you navigate to |
`
|
This is what the log file said: |
Just got this error as well. I installed using the community script and ran debug with it as well. Got the same "Public URI not set" error and the same quotation marks not around environment variables. I've added them and still nothing. Ran the commands above the @njlie gave, and here is a hastebin with the output of it and a bunch of info: https://hastebin.com/nilidaxiqo.coffeescript |
@GaetanoH @sneakyfish5 Looks like the codiusd process being run by systemd is still running, hence the |
This is what I got: https://hastebin.com/bigejopule.coffeescript |
Stopped it after a little bit but if you want me to run it for longer I can |
This is what mine said: https://hastebin.com/iwanubocin.js |
@sneakyfish5 It looks like it's performing normally at that point. At that point it's just pinging other hosts and outputting the results. If you want to suppress that output I'd amend the startup command to Try leaving it on and uploading to your host while running it. If it works there then it'd be a problem with the service file and we can start looking at that. Also, did you install Codius using the community install script? |
@GaetanoH Can you do the same as what I suggested in my previous post? It looks like yours is running normally too, so I'd like to see if uploads to your Codius host work while in that state. |
@njlie yes I did use the community install script made by baltazar. I just tried uploading from the test upload tool (https://upload.host1.codius.live/) and I got this error: My debug log is here: https://hastebin.com/cuyuvofara.cs |
@sneakyfish5 I think you used the example URI I put in the command. Replace it with yours and try it again. |
Mine did a succesful load: Debug log is: https://hastebin.com/aquseqorag.http |
Oh yea my bad. I retried it with my correct URI and got this output from debug: https://hastebin.com/dopotivosu.cs I got the same error message from the upload tool though. |
@GaetanoH @sneakyfish5 If you can, can you each DM me on Gitter? I'd like to try and debug this in real time with the two of you. |
Hello, I've installed my host, and it seems to be running but Codiusd is still showing problems:
/usr/lib/node_modules/codiusd/src/services/Config.ts:58 throw new Error('Codiusd requires CODIUS_PUBLIC_URI to be set') ^ Error: Codiusd requires CODIUS_PUBLIC_URI to be set at new Config (/usr/lib/node_modules/codiusd/src/services/Config.ts:58:13) at construct (/usr/lib/node_modules/codiusd/node_modules/reduct/index.ts:34:12) at reduct (/usr/lib/node_modules/codiusd/node_modules/reduct/index.ts:59:7) at new App (/usr/lib/node_modules/codiusd/src/services/App.ts:26:19) at construct (/usr/lib/node_modules/codiusd/node_modules/reduct/index.ts:34:12) at reduct (/usr/lib/node_modules/codiusd/node_modules/reduct/index.ts:59:7) at Object.<anonymous> (/usr/lib/node_modules/codiusd/src/index.ts:8:23) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32)
This is my codiusd.serivce:
[Unit] Description=Codiusd After=network.target nss-lookup.target [Service] ExecStart=/usr/bin/npm start WorkingDirectory=/usr/lib/node_modules/codiusd Environment=DEBUG=* Environment=CODIUS_PUBLIC_URI=https://zodius.gaetanoherman.be Environment=CODIUS_XRP_PER_MONTH=10 Environment=CODIUS_MAX_MEMORY_FRACTION=0.97 Environment=CODIUS_ADDITIONAL_HOST_INFO=true Restart=always StandardOutput=syslog StandardError=syslog SyslogIdentifier=codiusd User=root Group=root [Install] WantedBy=multi-user.target
The text was updated successfully, but these errors were encountered: