Re: An error related to yaml

392 views
Skip to first unread message

Francis Y. Yan

unread,
Jan 13, 2021, 3:26:37 PM1/13/21
to Lv Mem, Puffer
Hi there,

The error message related to YAML setting has always been vague (unfortunately), so I usually use gdb to pinpoint the exact line that causes the error. Could you try gdb and paste a more informative error message here?

Best,
Francis

On Tue, Jan 12, 2021 at 7:14 PM Lv Mem <lgr...@gmail.com> wrote:
Hi Francis,

When reproducing  your work according to Wiki, I met a problem in running Puffer's media sever with ./media-server/run_servers settings.yml.  Error information is like: 

terminate called after throwing an instance of 'YAML::TypedBadConversion<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >'
  what():  yaml-cpp: error at line 0, column 0: bad conversion
terminate called after throwing an instance of 'std::runtime_error'
  what():  ProcessManager: PID 11390 exits abnormally
Aborted (core dumped)

And my settings.yml is like:

portal_settings:
  allowed_hosts:
    - '*'
  debug: true
  secret_key: PUFFER_PORTAL_SECRET_KEY
postgres_connection:
  host: 127.0.0.1
  port: 5432
  dbname: puffer
  user: puffer
  password: PUFFER_PORTAL_DB_KEY
ws_base_port: 50000
experiments:
  - num_servers: 1
    fingerprint:
      abr: linear_bba
      abr_config:
        upper_reservoir: 0.9
      cc: cubic
enable_logging: false
media_dir: /home/ubuntu/media-181230
enforce_moving_live_edge: false
channels:
  - abc
  - nbc
  - fox
  - pbs
  - cbs
  - univision
channel_configs:
  abc:
    live: true
    video:
       ...

I've tried to use constan path in the command line (i.e., /home/ubuntu/puffer/src/settings.yml), but it didn't work. Now I'm wondering how can I fix this problem. Would you give me some advice please?  

Thanks.

--
You received this message because you are subscribed to the Google Groups "Puffer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puffer-stanfo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puffer-stanford/e6a4c2b2-ea96-43c8-9c75-44c8e1848e57n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages